package com.bort.system.model;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName("cart")
public class Cart {

    @TableId("id")
    private Integer id;

    @TableField("goods_id")
    private Integer goodsId;

    @TableField("goods_price")
    private BigDecimal goodsPrice;

    @TableField("goods_name")
    private String goodsName;

    @TableField("img_url")
    private String imgUrl;

    @TableField("num")
    private Integer num;

    @TableField("total_amount")
    private BigDecimal totalAmount;

    @TableField("desk_id")
    private Integer deskId;

    @TableField("player_name")
    private String playerName;

    /**
     * 1 新增,2 已买单
     */
    @TableField("cart_status")
    private Integer cartStatus;

    @TableField("create_time")
    private Date createTime;

    @TableField("create_user_id")
    private Integer createUserId;

}
